package com.mx.tool.intentionAction;

import com.intellij.openapi.command.WriteCommandAction;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.project.Project;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author: mengxiang.
 * @create: 2021-03-08 10:06
 * @Description:
 */
public interface IAction {

    List<String> excludeFieldLists = Arrays.asList("dbOwner", "entityClass", "connectionHolder", "shardingable"
            , "dataSourceName", "TABLE_NAME", "serialVersionUID", "__entityClass", "__connectionHolder", "__shardingable", "__dsName");

    List<String> datetimeFields = Arrays.asList("createTime", "lastModifyTime", "modifyTime", "updateTime");
    List<String> usersFields = Arrays.asList("createUser", "lastModifyUser", "modifyUser", "updateUser");

    String MESSAGE = "请先选中文本";


    Map<String, String> fieldType = new HashMap<String, String>() {
        {
            put("boolean", "false");
            put("java.lang.Boolean", "false");
            put("int", "0");
            put("byte", "(byte)0");
            put("java.lang.Byte", "(byte)0");
            put("java.lang.Integer", "0");
            put("java.lang.String", "\"\"");
            put("java.lang.Long", "0L");
            put("long", "0L");
            put("short", "(short)0");
            put("java.lang.Short", "(short)0");
            put("java.util.Date", "new Date()");
            put("float", "0.0F");
            put("java.lang.Float", "0.0F");
            put("double", "0.0D");
            put("java.lang.Double", "0.0D");
            put("java.lang.Character", "\"\"");
            put("char", "\"\"");
        }
    };

}
